<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="/hmtBook/Public/css/bootstrap.min.css">
<script type="text/javascript"src="/hmtBook/Public/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript"src="/hmtBook/Public/js/bootstrap.min.js"></script>

<title><?php echo ($title); ?></title>
</head>
<body>
<div class="hero-unit">
<h2>欢迎使用红满堂之家系统</h2>
<?php if(empty($_SESSION['uid'])): ?><form class="form-horizontal"action="/hmtBook/index.php/Home/Index/login" method="post" name="loginForm">
  <div class="control-group">
    <label class="control-label" for="username">红满堂账号</label>
    <div class="controls">
      <input type="text" id="username"name="username" placeholder="红满堂账号">
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="inputPassword">红满堂密码</label>
    <div class="controls">
      <input type="password" id="password"name="password" placeholder="Password">
    </div>
  </div>
  <div class="control-group">
    <div class="controls">
      <label class="checkbox">
        <input type="checkbox"> Remember me
      </label>
      <button type="submit" class="btn">登录</button>
    </div>
  </div>
</form><?php endif; ?>
<?php if(!empty($_SESSION['uid'])): ?><ul class="unstyled inline">
<li><a class="btn btn-primary btn-large " href="/hmtBook/index.php/Home/List">通讯录系统</a></li><li><a href=""class="btn btn-primary btn-large">校园网福利申请</a></li><li><a class="btn btn-primary btn-large"href="#">光荣榜</a></li>
</ul><?php endif; ?>
</div>
</body>
</html>